<div class="row contentBox">
    <app-sidebar-theme></app-sidebar-theme>
    <div [ngClass]="{'contentArea_rightDiv_project right-full':isActive, 'contentBox_project right-off':!isActive }">
        <div class="row txtTitle">

            <div class="form-group pull-right">
                <!--<span class="pull-left form-span span_left_search">启用状态：</span>-->
                <!--<select name="status" [(ngModel)]="status"  (change)="search()" class="pull-left fill form-control select-style">-->
                    <!--<option value="">全部</option>-->
                    <!--<option value="0">启用</option>-->
                    <!--<option value="-1">禁用</option>-->
                <!--</select>-->

                <!--<span class="pull-left form-span span_left_search">审核状态：</span>-->
                <!--<select name="checkstatus" [(ngModel)]="checkstatus"  (change)="search()" class="pull-left fill form-control select-style">-->
                    <!--<option value="">全部</option>-->
                    <!--<option value="1">已审核</option>-->
                    <!--<option value="0">未审核</option>-->
                    <!--<option value="-1">不通过</option>-->
                <!--</select>-->
            </div>

            <input type="text" class="input_style" placeholder="请输入主题词表标签名称" name="searchData" *ngIf="right['systemTableTag']['query']" [(ngModel)]="searchData" (input)="changesearch()" (keyup.enter)="changesearch()">
            <button class="btn btn-search btn-blue" mat-button (click)="search()" *ngIf="right['systemTableTag']['query']">检索</button>

            <button class="btn btn-blue" mat-button data-toggle="modal" data-target="#add" *ngIf="right['systemTableTag']['create']">新增</button>
            <button class="btn btn-orange"
                    mat-button
                    data-toggle="modal"
                    [disabled]="removeTableService?._isEmpty()"
                    data-target="#delete"
                    *ngIf="right['systemTableTag']['batchDelete']"
            >删除</button>
            <!--<button-->
                    <!--class="btn btn-green"-->
                    <!--mat-button-->
                    <!--[disabled]="removeTableService?._isEmpty()"-->
                    <!--(click)="_enable(0)"-->
            <!--&gt;启用</button>-->
            <!--<button-->
                    <!--class="btn btn-orange"-->
                    <!--mat-button-->
                    <!--[disabled]="removeTableService?._isEmpty()"-->
                    <!--(click)="_disable(-1)"-->
            <!--&gt;禁用</button>-->

            <!--<button-->
                    <!--class="btn btn-green "-->
                    <!--mat-button-->
                    <!--[disabled]="removeTableService?._isEmpty()"-->
                    <!--(click)="_checkstatus(1)"-->
            <!--&gt;审核</button>-->
            <!--<button-->
                    <!--class="btn btn-orange"-->
                    <!--mat-button-->
                    <!--[disabled]="removeTableService?._isEmpty()"-->
                    <!--(click)="_checkstatus(0)"-->
            <!--&gt;取消审核</button>-->
        </div>

        <!-- 表格 BEGIN -->
        <app-themetable-tag-table #table
                                 [tableNumber]="tableNumber"
                                 (tabeListOutput)="ParentList($event)"
                                 (detailsOutput)="ParentDetails($event)"
                                 (isSelectFromTable)="isSelectFromTableHandler($event)"
        >
        </app-themetable-tag-table>
        <!-- 表格 END -->

        <!-- 分页 BEGIN -->
        <app-pagination [getTotalItems]="this.table.totalItems" (isLoadTableFromPagination)="isLoadTableFromPaginationHandler($event)"></app-pagination>
        <!-- 分页 END -->
    </div>
</div>
<!--content  end-->


<!--新增弹窗 开始-->
<app-themetable-tag-add [details]="details" (addOutput)="ParentAdd($event)"></app-themetable-tag-add>
<!--新增弹窗 结束-->

<!--details-->
<app-themetable-tag-details [details]="details"></app-themetable-tag-details>
<!--details end-->

<!--编辑弹窗 开始-->
<app-themetable-tag-edit [details]="details"  (editOutput)="ParentEdit($event)"></app-themetable-tag-edit>
<!--编辑弹窗 结束-->

<!-- 删除 BEGIN -->
<app-themetable-tag-delete (deleteOutput)="ParentDelete($event)"></app-themetable-tag-delete>
<!-- 删除 END -->
